package com.autodesk.akn.emr.web.controller;

import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.mvc.multiaction.MultiActionController;

public class LoginController extends MultiActionController {
    @RequestMapping(value="login/login", method = RequestMethod.GET)
    public ModelAndView login(ModelMap model) {
        ModelAndView mav = new ModelAndView("login/login");
        return mav;

    }

    @RequestMapping(value="login/loginfailed", method = RequestMethod.GET)
     public String loginerror(ModelMap model) {
        model.addAttribute("error", "true");
        return "login/login";

    }
}
